package com.wx.mall.order.dto;

import com.wx.mall.common.validator.FlagValidator;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class OrderSelectDto {
@ApiModelProperty("当前页")
@NotNull(message = "不能为空")
   private Integer pageNum;

    @ApiModelProperty("页数量")
    @NotNull(message = "不能为空")
  private  Integer pageSize;

    @ApiModelProperty("排序方式")
    @FlagValidator(value = {"0","1","2","3"},message = "状态不正确")
  private   int sort;
    @ApiModelProperty("订单状态")
    Integer orderStatus;
    @ApiModelProperty(value = "交易流水号")
    String transactionId;
    @ApiModelProperty(value = "收货人地址")
    String receiverMobile;
    @ApiModelProperty(value = "订单创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    Date createTime;
    @ApiModelProperty(value = "订单来源：1:web，2：app，3：微信公众号，4：微信小程序  5 H5手机页面")
    Integer sourceType;
}
